<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/style.css" rel="stylesheet">
    <style>
        .mesg {
            background: #fff;
            padding: 5px 5px 3px;
            line-height: 20px;
            font-size: 12px;
            height: 48px;
            overflow: hidden;
        }

        .mesg-title {
            position: relative;
            line-height: 20px;
            font-size: 12px;
        }

        .mesg-title h3 {
            width: 70%;
            font-size: 14px;
            color: #313131;
        }

        .ellipsis {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            word-wrap: normal;
            word-break: keep-all;
        }

        .mesg-title .tag {
            display: block;
            width: 60px;
            font-size: 12px;
            text-align: right;
            color: #f60;
            position: absolute;
            right: 0;
            top: 0;
        }

    </style>
</head>

<body>
    <div class="mesg">
        <div class="mesg-title">
            <h3 class="ellipsis">标题aaaaaaaaaaaaaaaaaaaaaaaaaa123333777777777777</h3>
            <span class="tag ellipsis">右边aaaaaaaaaaaaaaaaaaaaaaaa</span>
        </div>
    </div>
</body>

</html>
